import { request } from "./request";

export function userMessage(uId) {
  return request({
    url: "/user/simpleInformation",
    method: "post",
    params: {
      uId,
    },
  });
}

export function userCollection(pageNum, uId) {
  return request({
    url: "/user/GameCollectionInformation",
    method: "post",
    params: {
      pageNum,
      uId,
    },
  });
}

export function history(pageNum, uId) {
  return request({
    url: "/user/history",
    method: "post",
    params: {
      pageNum,
      uId,
    },
  });
}

export function deleteHistory(hId) {
  return request({
    url: "/user/deleteHistory",
    method: "post",
    params: {
      hId,
    },
  });
}

export function deleteMoreUserIdHistory(moreUserId) {
  return request({
    url: "/user/deleteMoreUserIdHistory",
    method: "post",
    params: {
      moreUserId,
    },
  });
}

export function deleteUserIdHistory(uId) {
  return request({
    url: "/user/deleteUserIdHistory",
    method: "post",
    params: {
      uId,
    },
  });
}

export function MyComments(pageNum, uId) {
  return request({
    url: "/comment/MyComments",
    method: "get",
    params: {
      pageNum,
      uId,
    },
  });
}

export function myReplyComments(pageNum, uId) {
  return request({
    url: "/comment/myReplyComments",
    method: "get",
    params: {
      pageNum,
      uId,
    },
  });
}

export function createFeedback(fContent, uId) {
  return request({
    url: "/user/createFeedback",
    method: "post",
    params: {
      fContent,
      uId,
    },
  });
}
